{% comment %} argv: authorname {% endcomment %} {% assign posts_by_author = site.posts | where: "author", argv[0] %} {% assign author_not_specified = site.posts | where: 'author', nil %} {% if argv[0] == "anonymous" %} {% assign posts_by_author = author_not_specified | concat: posts_by_author %} {% endif %} {% assign return = posts_by_author | sort: "date" | reverse %}